package com.itheima.constructor;

public class Test {
    public static void main(String[] args) {
        Zi zi = new Zi("鹿晗",30,"汇大国际");
        System.out.println(zi.getName());

        System.out.println(zi.getAge());
        System.out.println(zi.getAddress());

    }

    public void show(){

    }
}
class Fu {
    private String name;
    private int age;
    public Fu() {
    }
    public Fu(String name, int age) {
        this.name = name;
        this.age = age;
    }
    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }
    public int getAge() {
        return age;
    }
    public void setAge(int age) {
        this.age = age;
    }
}
class Zi extends Fu {
    private String address;
    public Zi() {
    }
    public Zi(String name, int age, String address) {
        super(name, age);
        this.address = address;
    }
    public String getAddress() {
        return address;
    }
    public void setAddress(String address) {
        this.address = address;
    }
    public void show(){
        String name = super.getName();
        int age = super.getAge();
        System.out.println(name+"...."+age);


    }
}